package com.xxx.rpc.sample.local;

import org.springframework.stereotype.Component;

import com.xxx.rpc.common.annos.Reference;
import com.xxx.rpc.sample.remote.HelloService;
import com.xxx.rpc.sample.remote.MixService;
import com.xxx.rpc.sample.remote.WarpRpcService;
@Component
public class MixServiceImpl implements MixService {
	@Reference//(version = "sample.hello2")
	private HelloService helloService;
	@Reference//(version = "sample.hello2")
	private WarpRpcService warpRpcService;
	@Override
	public String mix(int a, int b) {
		return helloService.hello("aa")+warpRpcService.warp(a, b);
	}

}
